package cs.ui250.carnatic;

public class Raga {

	
	private int ID;
	private String name;
	//private boolean S,R1,R2,R3,G1,G2,G3,M1,M2,P,D1,D2,D3,N1,N2,N3;
	private Swara[] swaras;
	private Song[] songs;

	//Constructor
	Raga(int ID, String name, Swara S1, Swara S2, Swara S3, Swara S4, Swara S5, Swara S6, Swara S7){
		this.ID = ID;
		this.name = name;
		swaras = new Swara[] {S1,S2,S3,S4,S5,S6,S7};
	}
	
	

/**
 * Prints list of swaras contained in Raga in ascending scale
 * @return	String of swaras
 */
	public String printArohana(){
		String Arohana="";
		for (int i = 0; i<=swaras.length-1; i++){
			Arohana += swaras[i].name + " ";
		}
		
		return Arohana;
	}
	
/**
 * Prints list of swaras contained in Raga in descending scale
 * @return	String of swaras
 */
	public String printAvarohana(){
		String Avarohana="";
		for (int i = swaras.length-1; i >= 0; i--){
			Avarohana += swaras[i].name + " ";
		}
		
		return Avarohana;
	}
	
	
}
